package game.soccerField.lines;

import game.ball.SoccerBall;


public class LeftSouthGoalLine extends LimitLine {

	public LeftSouthGoalLine(double x, double y, int width, int height) {
		super(x, y, width, height);
	}

	@Override
	public void execute() {
		SoccerBall ball = this.getScene().getSoccerBall();
		if(ball.getLastTouched().isUserMate())
			this.getScene().announceLeftSouthCornerKick();
		else
			this.getScene().announceLeftGoalKick();
	}

}
